import { ElMessage } from "element-plus";

export default {
    const httpRequest = (method,url,data,callback)=>{

        proxy.$axios({
            method: method,
            url: url,
            data: data
        }).then(res=>{
            let resultBean = res.data;
            if(resultBean.code == 200){
                callback();
            }else{
                ElMessage.error(resultBean.msg);
            }
        }).catch(error=>{
            ElMessage.error(error.message);
        })
    
    }
}


